package edu.zut.cs.software.cms.module.attendance.service;

import java.util.List;
import java.util.Optional;

import edu.zut.cs.software.cms.base.service.GenericManager;
import edu.zut.cs.software.cms.module.attendance.domain.Attendance;

/**
 * 
 * @author 清风依旧
 *
 */
public interface AttendanceManager extends GenericManager<Attendance, Long> {
	/*
	 * delete way
	 */
//	boolean deleteById(long id);
	List<Attendance>getList();
	
	Optional<Attendance> findByAttendanceId(Long attendanceId);
	
	Boolean deleteById(Long attendanceId);
	
	/*
	 * modify attendance status
	 */
	boolean modifyById(long id,String status);

	/*
	 * add
	 */
	boolean IfExist(String name);
}
